using MicroMsg.Common.Algorithm;
using MicroMsg.Common.Utils;
using System;
namespace MicroMsg.Storage
{
	public class HDheadImgStorage : HeadImgStorage
	{
		public override string getPath(string userName)
		{
			if (string.IsNullOrEmpty(userName))
			{
				return null;
			}
			if (Util.InvalidFileName(userName))
			{
				userName = MD5Core.GetHashString(userName);
			}
			return StorageIO.getHeadImgHDPath() + "/" + userName + ".jpg";
		}
	}
}
